package com.lecyon.farm.service;

import com.lecyon.farm.config.FeignErrorConfig;
import com.lecyon.farm.vo.sync.SyncResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Yao Zheng
 * @Date 2020/4/14 11:10
 */
@FeignClient(name = "feignClient", url = "39.105.173.37:8055", path = "/synd_obj", configuration = {FeignErrorConfig.class})
public interface OrderFeignClient {

    /**
     * test
     *
     * @param tenant
     * @param phone
     * @return
     */
    @PostMapping("/sendCode")
    SyncResponse sentCode(@RequestParam("tenant") String tenant, @RequestParam("phone") String phone);
}
